﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace Tzw.Common.Model
{

    public class Printers
    {
        [JsonProperty(PropertyName = "printers")]
        public List<PrinterInfo> PrinterInfos { get; set; }
    }
    /// <summary>
    /// 打印机信息
    /// </summary>
    public class PrinterInfo
    {
        //public bool IsDefault { get; set; }
        /// <summary>
        /// 打印机名称
        /// </summary>
        public string PrinterName { get; set; }
        /// <summary>
        /// 驱动名称（这个字段感觉没啥用）
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 端口名称(例如：USB001)
        /// </summary>
        public string PortName { get; set; }
        /// <summary>
        /// 在线状态
        /// </summary>
        public bool Online { get; set; }

        /// <summary>
        /// initializing:正在初始化
        /// 打印机是否已就绪:0:默认；1、就绪；2、打印中
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 黑色墨分量，最大值100
        /// </summary>
        public int KV { get; set; }
        /// <summary>
        /// 青色色墨分量
        /// </summary>
        public int CV { get; set; }
        /// <summary>
        /// 品红色色墨分量
        /// </summary>
        public int MV { get; set; }
        /// <summary>
        /// 黄色色墨分量
        /// </summary>
        public int YV { get; set; }
    }

}